package com.anlu.base.visitor;

import lombok.ToString;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@ToString
public class Zoom implements  Modem{
    @Override
    public void accept(ModemVistor vistor) {
        if(vistor instanceof ZoomVistor){
            ((ZoomVistor)vistor).visit(this);
        }else{
            log.info("Only ZoomVisitor is allowed to visit Zoom modem");
        }
    }
}
